package com.yc.biz;

import java.util.List;
import java.util.Map;

public interface OrderBiz {

	//添加订单//订单表需要订单号null,uid:用户号,aid:地址的id，gid:商品号 ,date:日期,allprice:此次订单的金额,支付状态 ptid:付款方式
	public int addOrder(int uid,int ptid,int aid,String str,String strNum,String date,String strMoney);
	
	//查询所有的订单
	public List<Map<String,String>> findAllOrder(int uid,int page);
	
	//查询所有订单的条数
	public int findGoodsByTno(int uid);
	
	//判断值支付密码是否正确
	public int payOrder(int uid,String paypwd);
	
	//修改订单状态以及改变余额
	public int updateStatus(int uid,String oid,double price);
	
	//查询某个人的某种方式的余额
	public double findMoneyByPtid(int uid,String oid);
	
	//查询支付密码是否为空
	public String findPayPwd(int uid);

}
